|
|
|
|
|
|
|
An URL (Uniform Resource Locator) is an Internet Web site address. Every Web site, if registered properly, has a unique URL assigned to it. If you add the Internet-access capability to your application, you can supply a default URL Web page for the application's browser. When users starts the browser in the application, the browser connects to the URL specified in the StartingAddress variable. |
|
|
|
|
|
|
|
|
Note Of course, the default URL assigned in the template is for Microsoft's own home page, so you need to change this if you want users to see something other than www.microsoft.com, such as your Internet home page. |
|
|
|
|
|
|
|
|
|
|
Tip Although every URL should begin with http://, many Internet browsers no longer require you to add this text; the browser will insert it for you. In fact, the browser that you create will also work without you having to include http:// at the beginning of the URL. However, it won't add the characters to the displayed URL unless you add the code to do that. |
|
|
|
|
|
|
|
|
|
|
Now that you've seen some of what the browser requires to operate, you need to add the browser template to the Address Book application. Start by opening the AddressBook project. Then right-click the Project Explorer window and choose Add, Form from the pop-up menu to display the Add Form dialog box (see Figure 14.3). Select the Browser template and click Open to add the form to your project. |
|
|
|
|
|
|
|
|
Figure 14.3.
Adding the Browser template to an existing
application by using the Add Form dialog box. |
|
|
|
|
|